package com.ruoyi.person.service.impl;

import com.ruoyi.person.mapper.LeaderMapper;
import com.ruoyi.person.model.LProject;
import com.ruoyi.person.model.Leader;
import com.ruoyi.person.service.ILeaderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LeaderServiceImpl implements ILeaderService {
    @Autowired
    LeaderMapper leaderMapper;

    @Override
    public List<Leader> getAllLeader(Leader leader) {
        return leaderMapper.selectAllLeader(leader);
    }

    @Override
    public List<LProject> getProjectsByLeaderId(Long id) {
        return leaderMapper.selectProjectsByLeaderId(id);
    }
}
